package com.ftg.learn.lesson6;

/**
 * 动物类
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/6/28 下午3:34
 */
public class Animal {


    private String name;

    private String desc;


    //access method


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void run() {
        System.out.println("动物可以走");
    }

    public void eat() {
        System.out.println("动物可以吃");
    }

}
